Have null check the correct way round