#!/bin/bash

for pkg in "$@"; do
  pacman -Q "$pkg" &>/dev/null || return 1
done

return 0
