[TASK] Move input parameters check into separate method