The other way works too, but it seems pointless to go through extra steps when the if command already does exactly this