On the existence and uniqueness of M-splines