Check board type before firmware upload


I switch between a MKRWIFI1010, MKRWAN1300 and MKRWAN1310 (1300 and 1310 used in same project). Now it happened that I forget to switch the environment or active project and upload the wrong build to the board. Which mean the 1300 say it be a 1310 or 1010 and will no longer boot and I must reset it manually, which is annoying. Exists a way to prevent platform to do a upload if the wrong board is connected?