fix PHP notice when there is only one store