add method for error interface ``` IsNone() bool NotNone() bool ``` and check error as following ``` if err.IsNone() { } if err.NotNone() { } ```