Style nitpick: `host ||= Host.where` will only set "host" if it's false, so you don't need the unless clause.