Return false if a redirect cookie is not set
Added devDependencies and test script
Added cookie ffunction test