is there a way to check if cookie exists?