Php Find Object In Array Javascript Mdn