use defined? instead of version checking