added has key method to params