To be safe against empty strings, the `ci_branch` and `git_branch` checks should probably become `foo.to_s.strip.size > 0`. Makes you miss ActiveSupport, eh?