Checking if data was extract from file b4 sending to template