A Function to Check a Cookie