Fix the delicious counter to check if data is nil