Returns whether or not the specified key is present.
string $key The key for which to check the existence.:
bool
public function hasKey($key) { return array_key_exists($key, $this->data); }