Fix array_diff notice issue in PHP 5.4

Added an internal array diff function based on this function http://www.php.net/manual/en/function.array-diff-assoc.php#111675 in order to address PHP notice errors when using array_diff and array_diff_assoc in PHP 5.4 ...4