validate if attribute is defined before check IsAny