dont parse pid if its nil