more elegant way of detecting hasDifferentSubviews (apex compatibility)