Added is_installed function to determine if a package is installed. Same behavior like is_file, is_dir and so on.