matlab check if variable exists in function