NTFY-22 Corrected array check

typeof doesn't work with arrays