public static function isSerialized($data) {
        if (!is_string($data) || empty($data)) {
            return false;
        }

        return (@unserialize($data) !== false);
    }
public static function isSerialized($data) {
        if (!is_string($data) || empty($data)) {
            return false;
        }

        return (@unserialize($data) !== false);
    }
public static function isSerialized ( $ data ) { if ( ! is_string ( $ data ) || empty ( $ data ) ) { return false ; } return ( @ unserialize ( $ data ) !== false ) ; }
Check to see if data passed has been serialized.

@param mixed $data
@return bool
Check to see if data passed has been serialized .