Check for proper return type