Added empty cart test
Using local variables in help functions