check if source is an array