could be "" or false too.
Would if error is not None be better?