Can we collapse this into a single if() condition expression?