I could replace that with .blank?, but this is overly defensive code 'resource_path' method -- it never gets called if type is nil: https://github.com/witlessbird/foreman/blob/5553-part1/app/helpers/filters_helper.rb#L4