I'm not sure what this logic implies, because of the lack of brackets I think.  Does the exit -1 ever get reached?