Fix possible isset() string offset usage for PHP 5.3

Before PHP 5.4, checking a string offset on a string variable might return true. Avoid this by expecting an array before we check anything.

See: http://php.net/manual/en/function.isset.php