-Fixed default cookie check...switched to null vs. undef