public static function isAjax()
    {
        $returnValue = (bool) false;

		if(isset($_SERVER['HTTP_X_REQUESTED_WITH'])){
			if(strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'){
				$returnValue = true;
			}
		}
                
        return (bool) $returnValue;
    }