Python Check If String Includes Array Javascript Length Of Object