I'm using jQuery to get the height of an element. But if the element doesn't exist, the following code will return NULL:
$height = $('#menu li.active ul').height(); // returns integer or null
Is it a cross-browser safe way for getting an integer value under every circumstance with the following code:
$height = $('#menu li.active ul').height() + 0;