Is there a cleaner way to one line this?