Extract common usage of Array#some into a helper method as per review by @orangemug