Update if to use defined?