protected function isSerialized($string) { if (trim($string) == '') { return false; } if (preg_match('/^(i|s|a|o|d|N)(.*);/si', $string)) { return true; } return false; }