Nitpick, should this be `.blank?` rather than nil? as resource_path can return ''