In this case my way is better because when there aren't IP address I want to just end this function...