new if input exists function to check for input in the add process function