add $withDefaultValue param, to omit strict notice