Put a check in case of array overflow when looking for type