Check whether index is a passed variable: exist('index','var')