Check the return value