Quite a roundabout way of expressing an if