Do you know the limit definition of the derivative of the function at point ?
Hmm... you should! The derivative of f at c is
.
The existence of this limit in this form requires that the one-sided limits
and exist and are equal. I think you will have to evaluate both one-sided limits and show that they are equal in order to prove that f'(0) exists in your case.