Make C# and Java check array length after split. Make PHP condition stricter