A bunch of different ways to check if content is null. Just by the data.pi.description:
if (! data.pi.description) ...
You could check the div text area with:
if (!$(".description").html()) ....
or
if ( $(".description").length == 0) ...
Similar question to How to check null objects in jQuery