Fixed using wrong function to check valid object
Changed hidden packages to objects

This (currently) removes the availability to add new hidden packages
using commands and reload hidden packages using the /reload command.
A solution to add and reload hidden packages might be added later again.