Additional checks for push/pull in API.