Move the check into dependent call
Merge pull request #247 from Dmitry-Me/combineCheckWithDependentCall

Move the check into dependent call