* Add validation if $key is null to avoid php message.