Added check for `nil` value for the `checkPath:`.