refactor BMP.BlinkGap.isHere() and remove duplicated code in main