You are right. I just noted this because function has returns from different IFs.