Check if view matches requirements before checking if it's a ViewGroup to look at it's children