Check if property is set

```getValue``` didn't check if the property on an object exists so wouldn't return the default value.