Used data_get instead of an unnecessary if statement