Validation on IP only if isset