Check values in sensible function to avoid unpredicatble effects