Changed if ( isset( $icon ) AND $icon != '' ) to if ( !empty( $icon ) )