private function getProperty($data, $key, $default = null) { return array_key_exists($key, $data) && null !== $data[$key] ? $data[$key] : $default; }