added a better check in editarticle

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
made doesChallengeExist static

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>