getValue with default value