Type condition instead of conditions