a. All we have is two cans of beans. It isn't a lot to eat, but it will have to do for now.

b. All we have is two cans of beans. It isn't much to eat, but it will have to do for now.

Are the above sentences grammatically correct?

I suppose normally one would say 'It isn't a lot/much, but it will have to do for now.' But I want to see if 'a lot/much to eat' works