Creates the is_active method