avoid errors with jQuery in noConflict mode
safer comparison with null