Added new functionality

If passed a falsy value, the $() function will return an empty array instead of throwing an error.