Address issue #2 by creating an array of installed php packages and using this array to switch on.
Merge branch 'issue/2'