Check if input is not null