Get directgive from array