small refactoring

In ruby everything that is not `nil` or `false` returns `true` so no need to return true or false explicitly