Add check to ensure input is an array