Change check in virtual attribute check to test against truthy instead of 1 to accomodate for PG