remove unnecessary comparisons

See: https://github.com/Automattic/_s/issues/632

Upon changing these conditionals, I also noticed that it improves theme consistency because this is how it's written in another file already: https://github.com/Automattic/_s/blob/097b54dda282fcdbf23c951889d798e6424979dc/inc/template-tags.php#L116