Check if a field is visble before adding a value-function that uses that field