node / javascript function to tell you if the supplied argument is empty