It isn't more code. Same amount of lines actually. And way more readable. :)
Hah! Good catch. Did not even notice. Maybe because of the added return statements.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.