src/class-wp-menu.php
private static function validate_method( $method ) {

		if ( $method && isset( $method[0] ) && isset( $method[1] ) ) {
			if ( method_exists( $method[0], $method[1] ) ) {
				return true;
			}
		}

		return false;
	}
private static function validate_method( $method ) {

		if ( $method && isset( $method[0] ) && isset( $method[1] ) ) {
			if ( method_exists( $method[0], $method[1] ) ) {
				return true;
			}
		}

		return false;
	}
private static function validate_method ( $ method ) { if ( $ method && isset ( $ method [ 0 ] ) && isset ( $ method [ 1 ] ) ) { if ( method_exists ( $ method [ 0 ] , $ method [ 1 ] ) ) { return true ; } } return false ; }
Check if method exists.

@since 1.0.2

@param array $method → [class|object, method].

@return boolean
Check if method exists .