How can i check in .volt files if flash message exists or not to show html.
Check the Session::has() method:
Session::has()
https://docs.phalcon.io/latest/en/api/Phalcon_Flash_Session
{% if flashSession.has() %} {{ flashSession.output() }} {% endif %}