added hasKey documentation
changed hasKey implementation to a simpler lookup