added numberExists function to the exported class