This feels like a lot of logic for one line