fix: if statement fails when $1 is a string