Saying “bye” to my 2 year old or sneak out

My parents strongly believe that I should sneak out when leaving my 2 year old at their house. Sometimes this works, but sometimes she sees me leaving and cries. I think telling her I’m leaving and will come back later is better for her. Any advice?