Edited a conditional to be more compatible