@Aucun50 you dont need to do
if ($2- == $null) {
this will work the same.
if (!$2) {
cuz if there is no 2 then there is no 3 and so on.