Prefer detect over find in ruby