includes/class-fs-api.php
static function is_api_result_object( $result, $required_property = null ) {
			return (
				is_object( $result ) &&
				! isset( $result->error ) &&
				( empty( $required_property ) || isset( $result->{$required_property} ) )
			);
		}
static function is_api_result_object( $result, $required_property = null ) {
			return (
				is_object( $result ) &&
				! isset( $result->error ) &&
				( empty( $required_property ) || isset( $result->{$required_property} ) )
			);
		}
static function is_api_result_object ( $ result , $ required_property = null ) { return ( is_object ( $ result ) && ! isset ( $ result -> error ) && ( empty ( $ required_property ) || isset ( $ result -> { $ required_property } ) ) ) ; }
Checks if given API result is a non-empty and not an error object.

@author Vova Feldman (@svovaf)
@since  1.2.1.5

@param mixed       $result
@param string|null $required_property Optional property we want to verify that is set.

@return bool
Checks if given API result is a non - empty and not an error object .