Let $f\colon A\to B$ be a map of pointed simplicial sets and let $B$ be Kan-fibrant. Let $0\colon A\to B$ denote the map which factorizes over the basepoint of $B$.
Is it true that $f$ is homotopic to $0$ if and only if the composition $$A\xrightarrow{f}B \xrightarrow{\tiny \mbox{canonical}} \pi_0(B)$$ is the map to the basepoint of the pointed set $\pi_0(B)$ which is pointed by the component of the basepoint? I understand $\pi_0(B)$ as the coequalizer of the two boundary maps from $B_1$ to $B_0$.