My suggestion here is that we separate checks one per if statement. This is very helpful for debugging.