Added is_array(), because PHP was acting like a moron again.