On a class of non-smooth dynamical systems: a sufficient condition for smooth versus non-smooth solutions