Avoid 'Undefined offset' error in is_hash(). If empty array, return false.

...e.
the `? : true : false` part was questionable to begin with.. It could have simply been `return @is_string($keys[0]);`