Php Filter Input Validation Javascript Array Push At Index