move check if border line style is blank before setting the border color to a helper function for readability