more serialization implementation

Wait, what? An `isset` check on the first character of a string? What does th... oh. Oh. Wow. This is clever. But very, very hard to read. Please replace with `if ( $result !== '' )`.