What's the exception you were getting here? Maybe we should use if callable(field_is_displayed)