Add checking path to undefined. Refactoring data.json