Got an error: Can't use 'defined(%hash)' (Maybe you should just omit the defined()?)