If-converted method