second meeting with Tom, added array and equalIgnoreCase logic