reinversing boolean checks for position-based dashed outline