Check if a given value is defined