Put hasLayerRestuls in apply call