Fixed up $.isEmpty() to not fall through once the value's type is determined.
Also fixed the documentation for that function.