Update input.php

added is_array check