convert pids to array to check it`s length