Check existece of a key more smartly