removed useless test with exist() that is very expensive in
Octave (but apparently not in Matlab)

(cherry picked from commit c1e0d68351527153960a988087abcc316e2b17ff)