Check returned value