not throwing error for ajax calls, return false instead