implemented the isset() method