I agree, but I would go further and say that we must fast, pray and do good works, otherwise a fast can turn into a self-centered idea of achieving a goal or competing in a competition and can generate pride.

St. Jerome talks about this in regards to having a proper disposition, the Orthodox Theophan the Recluse went even further and called a fast without prayer a fast for Demons.