Added basic cookie presence checking