whole body can be reduced to <code>
return key ? key->key : NULL;
</code>