Fix issue #7 Like PHP, Javascript should return false if array is empty in the if statement

Reference: https://github.com/umakantp/jsmart/issues/7