Setting default values for 'values' in case it does not get set

Hi, I noticed that there is a chance for the values variable to not get set before it is checked, and that it needs a default value.  

Thank you for providing a very helpful module.

Cheers,

Llew