better $.fn check