checking instance variable for presence instead of getter