Changed return value to false for errors