I have this simple code that works. However it feels cheesy and like I am doing something stupid. So is this how I would handle this if I wanted to be in one line?