All undefined replaced by return in case when function return nothing