Create new method to validate nil variables