in the `if` condition just before this, shouldn't we check if have a `renderedIcon` too ?