public static function validateSerialized($data, callable $filter=null) {
        $decoded = @unserialize($data);
        if ( $decoded === false && $data != @serialize(false) ) return false;
        return self::applyFilter($data, $filter);
    }