export const ifHasValue = function ( this , val , options ) { const defined = ( typeof val !== 'undefined' ) && ( val !== null ) ; if ( defined ) { return options . fn ( this ) ; } else { return options . inverse ( this ) ; } } ;