Minor bug fix. Forgot to check if a property name is in the values passed to it.