It's used for checking whether the return value is valid.
Yep, I think it isn't needed. Feel free to remove it. :)