Better way for checking number event occurrence.