Something like that would probably be a good idea to add to the beginning of all custom includes.
if (!defined('MODX_MANAGER_PATH')) die('you gravy-sucking pig');
(OK maybe the output message should be a tad more informative.)
MODX_MANAGER_PATH is a constant which absolutely should have been set when the config file was loaded, and constants are much more resistant to having their values changed accidentally. Also it seems to me as if there may be some instances in which you’d need to first have a global $modx; statement (e.g., if the include were inside a function) before testing for that object’s existence, and that would defeat the purpose.
This might also be a useful second line of code:
require_once(MODX_MANAGER_PATH.'/includes/protect.inc.php');