Check the return value here.