This is an important message requiring you to make a choice if you're based in the EU.
AngularJs Blocks Form Submit without "action"-In general, AngularJs blocks the form submit, because of empty "Action".
Use PHP empty () function, or count() function to check whether the array is empty or not. See examples.
You can either loop through the arrays or convert them to string and then compare. This tutorial provides several fast methods of comparing two arrays.