Like underscores _.has(object, key) except the key can be deep like sgHasKey(myPersonObject, 'marital.status.isMarried', 'boolean') and also accepts a third parameter that specifies the type of the key