add additionnal check to value to prevent sending null