added a static method to check whether a certain value is allowed in an access path