Bigquery Array Length Javascript Method Vs Function