public static function isEmpty($value)
    {
        if (empty($value)) {
            return true;
        } elseif ($value instanceof \stdClass) {
            return count((array) $value) === 0;
        } elseif ($value instanceof RecordInterface) {
            return count($value->getProperties()) === 0;
        }

        return false;
    }
public static function isEmpty($value)
    {
        if (empty($value)) {
            return true;
        } elseif ($value instanceof \stdClass) {
            return count((array) $value) === 0;
        } elseif ($value instanceof RecordInterface) {
            return count($value->getProperties()) === 0;
        }

        return false;
    }
public static function isEmpty ( $ value ) { if ( empty ( $ value ) ) { return true ; } elseif ( $ value instanceof \ stdClass ) { return count ( ( array ) $ value ) === 0 ; } elseif ( $ value instanceof RecordInterface ) { return count ( $ value -> getProperties ( ) ) === 0 ; } return false ; }
Checks whether a value is empty

@param mixed $value
@return boolean
Checks whether a value is empty