if(typeof arr != "undefined" && arr != null && arr.length > 0){}
I was always told this was the correct way to check for empty arrays, and it's stuck with me.
So, to answer your question precisely:
if(arr.length > 0){}
Is the method I was led to believe was "correct", as it is clearer to anyone reading the code what the implied logic was. I believe this is likely why you see this method used in documentation/samples/tutorials over the other.
But as for any specific advantage other than semantic look and feel, I don't believe there is any.
A lot more explanation available on this question: Check if array is empty or exists
(linking, as I don't want to steal their descriptions - they deserve the upvotes)