implemented the isset() method

Added the isset() method to check if a given cookie is set.