Small fix with isFunction

Forget to see what unserialize returns in case of error (http://php.net/manual/en/function.unserialize.php)