you could write this condition on a single line I'd say