Use #include? instead of #any?, make it simpler
Merge pull request #14956 from akshay-vishnoi/refactor

Use #include? instead of #any?, make it simpler