test $if, minor improvement to test for [], {}