Update Packages.php

shortened to 1 line... one can also check if $_POST['new_inputs'] is array but since its from package handler it should be ok