I'd think about putting this conditional into a private method, it reads strangely imo.