Oh, this is way more readable and OO. Plus it will improve what really matters: the CodeClimate score.