Check if datepicker is open
Simply set:
#ui-datepicker-div { display: none; }
in your CSS file and your code:
$("#filter_date").datepicker( "widget" ).is(":visible")
will work correctly!
This might be a possible bug in the past. Now this solution
$("#filter_date").datepicker( "widget" ).is(":visible")
works perfectly