check if input null on getInBatch