Update Subs-Package.php

- check for input tag from package-info.xml
- some if/else logic changed to switch/case (not tested yet)
- changed to typesafe comparison