Como verifico attr () vazio no jquery?

Eu tenho algumas divs que são criadas usando PHP. A âncora dentro da div sempre tem um HREF, mesmo que esteja em branco. Basicamente, estou tentando detectar se o HREF está em branco. Se tiver conteúdo, não faça nada, se estiver em branco, retire o texto, exclua a âncora e coloque o texto novamente.

Aqui está a div:

<div class="title"> 
    <a class="article" href="">Lorem Ipsum</a> 
</div> 

Aqui está o meu código:

jQuery(document).ready(function($) { //required for $ to work in Wordpress

    $(".article").each(function(){
        if ($(this).attr('href') !== undefined) {
            return;
        } else {
            var linkTitle = $(this).html();
            $(this).parent().empty().html(linkTitle);
        }                               
    });    
//-->
});

questionAnswers(3)

yourAnswerToTheQuestion