Notices as reported in #1479... replaced one more is_array() check