updating if syntax to not mix alternate conditional structure with standard.