protected function is_needed( $context = null ) {

		$is_needed = $this->hasConfigKey( 'is_needed' )
			? $this->getConfigKey( 'is_needed' )
			: true;

		if ( is_callable( $is_needed ) ) {
			return $is_needed( $context );
		}

		return (bool) $is_needed;
	}
protected function is_needed( $context = null ) {

		$is_needed = $this->hasConfigKey( 'is_needed' )
			? $this->getConfigKey( 'is_needed' )
			: true;

		if ( is_callable( $is_needed ) ) {
			return $is_needed( $context );
		}

		return (bool) $is_needed;
	}
protected function is_needed ( $ context = null ) { $ is_needed = $ this -> hasConfigKey ( 'is_needed' ) ? $ this -> getConfigKey ( 'is_needed' ) : true ; if ( is_callable ( $ is_needed ) ) { return $ is_needed ( $ context ) ; } return ( bool ) $ is_needed ; }
Check whether an element is needed.

@since 0.2.0

@param mixed $context Data about the context in which the call is made.
@return boolean Whether the element is needed or not.
Check whether an element is needed .