somehow that becomes an array, so check the type