Bash If Array Is Not Empty Sqlite3