Added correct condition for checking number helper