The code `if [[ -f "$MPOINT/$CHECKFILE" ]]; then` should be written as `if [[ -f "$MPOINT/$CHECKFILEPATH" ]]; then`
The code
if [[ -f "$MPOINT/$CHECKFILE" ]]; thenshould be written asif [[ -f "$MPOINT/$CHECKFILEPATH" ]]; then