This isn't Python :)  "test ? true : false".  Anyway, due to the implicit return, just remove these two lines and put `!paths.empty?` on the last line.