376 - fixing conditional check