Better condition handling on nil ip address