Use isLegal condition