abstract conditional logic for display of header elements into helpers