Typo in function and additional function

* Typo in function add repository key over keyserver - Sorry!

* Added is_installed function to determine if a package is installed. Same behavior like is_file, is_dir and so on.

Please let me know if i forgot something (comments, documentation or other things) - Thanks!