ifAny function