Check to see if src is an array

I sometimes set `src` to a string by accident, this should help.