moving array_difference to PortHandler methods