turning some of the condition checks into one-liners