enumeration: renamed isValueFromEnum() to isValid()
conditions: fixed value check