[BUGFIX] Wrong check removes FE cookie