rails no longer returns arrays so delete_if doesnt work without the conversion