Breast milk vs. Formula

Is a mother's breast milk still better then formula even if the mother doesn't eat regularly?