Checking for variables geting nil