This is a time-critical function and it'd be best if there were as few conditions as possible. Therefore I'd prefer if you made two separate functions, one for checking Water and one for checking WaterOrIce.