Can this go into a single ```if``` statement?