You can appease Rubocop here by changing `.detect` to `.find`.