Would you explain the usage of  `assert`? It's better to avoid hard crashes.