Changed the way we check for an array (mainly to please @joshcroad)