Add try catch block for ReflectionClass