check for  before array_intersect