Making sure the data is there and extracting the appropriate featres vector