(1) A provision treating a corporation's indemnification of or advance for expenses to directors that is contained in its articles of incorporation, bylaws, a resolution of its shareholders or board of directors, or in a contract or otherwise, is valid only if and to the extent the provision is consistent with RCW
23B.08.500 through
23B.08.580. If articles of incorporation limit indemnification or advance for expenses, indemnification and advance for expenses are valid only to the extent consistent with the articles of incorporation.