Javascript If Array Contains Elements That Do Not Typically React