Comma Before And
If there are only two things in a list, they do not need to be separated by a comma. If there are more than two ideas, the comma should be used as it would in a list. (See Oxford Comma.)
The compound predicate, is to clarify lists and conjoin ideas, does not require a comma. The comma should be removed.
The comma in the last sentence is correctly placed because it is being used to clarify the elements in a list.
A comma should also be placed before and if and is at the beginning of an independent clause.
from Grammarly Blog https://www.grammarly.com/blog/comma-before-and/