Unneccessary double-check of boolean condition to check if primary and/or secondary icon in text box should be shown or not.