refactor check for minimal money amount