Implemented promise check