export function isControlPresented ( name , state , defaultValue ? ) { if ( state !== undefined && name !== undefined ) { if ( name in state ) { return state [ name ] !== null ; } return defaultValue !== undefined ; } return true ; }