do you mean whether ```if not []```? from what I know this is the correct way to check whether error is empty in python