Simplified function to return bool.